
// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
// 登录
import login from '@/views/login';
// 注册
import request from '@/views/request';
// 个人中心
import personalCenter from '@/views/personalCenter/personalCenter';
// 首页
import index from '@/views/index';
//忘记密码
import wangPassword from '@/views/wangPassword';
// 工作桌面
import Goods from '@/views/goods/Goods';
// 共享中心
import Order from '@/views/pay/Order';
//共享跳转
import Company from '@/views/AddNewCompany/AddNewCompany'
// 市场门户
import statistics from '@/views/charts/statistics';
//销售门户
import ProductClass from '@/views/product/ProductClass';


import salesContract from '@/views/product/salesContract';
import Customer from '@/views/product/customer';
import Inquire from '@/views/product/inquire';
import Contact from '@/views/product/contact';
import LeadManagement from '@/views/product/leadManagement';
import Seal from '@/views/product/seal';
// 审批详情
import approvalDetails from '@/views/product/approvalDetails'
//产品详情
import productDetails from '@/views/product/productDetails'



//采购门户
import SzProject from '@/views/BasicInformation/SzProject';
import SanDanPiPei from '@/views/BasicInformation/sanDanPiPei';
import caigou from '@/views/BasicInformation/caigou';
import contract from '@/views/BasicInformation/contract';
//合同门户
import Portal from '@/views/maheimei/Portal';
//财务门户
import Finance from '../views/finance/finance.vue';
import receipt from '@/views/finance/receipt';

//人事门户
import personnel from '@/views/personnel/personnel.vue'
//新建人事档案
import newpersonnel from '../views/personnel/newpersonnel.vue'
//编辑人事档案
import updatepersonnel from '../views/personnel/updatepersonnel.vue'

//更新
import more from '../views/more/more.vue'
// 市场门户跳转一
import register from '../views/charts/src.assets/register.vue'

import zxinjia from '../views/charts/src.assets/zxinjian.vue'

import wenan from '../views/charts/src.assets/wenan.vue'
import researchx from '../views/charts/src.assets/researchx.vue'
import Copybase from '../views/charts/src.assets/Copybase.vue'
//新建项目
import newproject from '@/views/xiangmu/newproject.vue'
//编辑项目
import updateproject from '@/views/xiangmu/updateproject.vue';
//项目门户
import xiangmu from '@/views/xiangmu/xianmu.vue';

//跳转付款表
import pricetable from '../components/maheimeicom/Payment';
//跳转合同报表
import vchart from '../components/maheimeicom/vchart.vue';
//行政门户
import administration from '@/views/maheimei/administration'
//合同表单1
import table1 from '@/views/maheimei/table1'
//空文件
import nulla from '@/views/maheimei/null'
//采购商城
import cg from "../views/caigoushangcheng/caigoushangcheng.vue"
import sy from "../views/first/first.vue"


//智能销售分析 可视化
import Visualization from '@/views/Visualization/VchartAll'

//财务发票跳转
import inovico from '../views/finance/invoice.vue'

//任贯逞薪资管理
import salarymanagement from '@/views/salary/salarymanagement'



//马世浩新加
//合同审批
import contractapproval from '@/views/maheimei/contractapproval'
//邮箱
import email from '@/views/maheimei/email'

//头部审批
import approve from '../components/maheimeinavcon/approve.vue';
//头部客服
import service from '../components/maheimeinavcon/service.vue';
//头部通知
import notification from '../components/maheimeinavcon/notification.vue';

// 请假
import Leave from '../views/charts/leave/Leaves.vue'
// 签到
import Sing from '../views/charts/signin/Signinrecord.vue'

import Task from '../views/charts/src.assets/task.vue'
// 启用路由
Vue.use(Router);

// 导出路由
export default new Router({
    routes: [{
        path: '/',
        name: '',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/login',
        name: '登录',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/request',
        name: '注册',
        component: request,
        hidden: true,
        meta: {
            requireAuth: false
        }
    },
    {
        path: '/wangPassword',
        name: '忘记密码',
        component: wangPassword,

    },
    {
        path: '/index',
        name: '零售管理',
        component: index,
        iconCls: 'el-icon-tickets',
        children: [{
            path: '/goods/Goods',
            name: '工作桌面',
            component: Goods,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/personalCenter/personalCenter',
            name: '个人中心',
            component: personalCenter,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/pay/Order',
            name: '共享中心',
            component: Order,
            meta: {
                requireAuth: true
            }
        },

        {
            path: '/charts/statistics',
            name: '市场门户',
            component: statistics,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/charts/src.assets/register',
            name: '市场跳转-1',
            component: register,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/charts/src.assets/wenan',
            name: '市场跳转-2',
            component: wenan,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/charts/src.assets/researchx',
            name: '市场跳转-3',
            component: researchx,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/charts/src.assets/Copybase',
            name: '市场跳转-4',
            component: Copybase,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/product/ProductClass',
            name: '销售门户',
            component: ProductClass,
            meta: {
                requireAuth: true
            }
        },

        {
            path: '/BasicInformation/SzProject',
            name: '采购门户',
            component: SzProject,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/maheimei/Portal',
            name: '合同门户',
            component: Portal,
            meta: {
                requireAuth: true
            }
        },

        {
            path: '/xiangmu/xianmu',
            name: '项目门户',
            component: xiangmu,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/maheimei/null',
        }, {
            path: '/xiangmu/newproject',
            name: '新建项目',
            component: newproject,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/xiangmu/updateproject',
            name: '编辑项目',
            component: updateproject,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/maheimei/Portal',
            name: '客服门户',
            component: nulla,
            meta: {
                requireAuth: true
            }
        },

        {
            path: '/personnel/personnel',
            name: '人事门户',
            component: personnel,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/personnel/newpersonnel',
            name: '新建人事档案',
            component: newpersonnel,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/personnel/updatepersonnel',
            name: '编辑人事档案',
            component: updatepersonnel,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/finance/finance',
            name: '财务门户',
            component: Finance,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/finance/inovico',
            name: '财务发票',
            component: inovico,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/finance/receipt',
            name: '收款',
            component: receipt,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/maheimei/administration',
            name: '行政门户',
            component: administration,
            meta: {
                requireAuth: true
            }
        },

        {
            path: '/maheimei/contractapproval',
            name: '合同审批',
            component: contractapproval,
            meta: {
                requireAuth: true
            }
        },
        //邮箱
        {
            path: '/maheimei/email',
            name: '邮箱',
            component: email,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/maheimei/table1',
            name: '合同报表',
            component: table1,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/maheimei/null',
            name: '数据报表',
            component: nulla,
            meta: {
                requireAuth: true
            }
        },
        {

            path: '/maheimei/null',
            name: '智能客服分析',
            component: nulla,
            component: nulla,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/Visualization/VchartAll',
            name: '智能销售分析',
            component: Visualization,
            meta: {
                requireAuth: true
            }
        }, {
            path: "/more/more",
            name: "more",
            component: more,
        },
        {

            path: "/product/salesContract",
            name: "合同查询",
            component: salesContract,
            meta: {
                requireAuth: true
            },
        },
        {

            path: "/product/customer",
            name: "我的客户",
            component: Customer,
            meta: {
                requireAuth: true
            },
        },
        {

            path: "/product/inquire",
            name: "查询客户",
            component: Inquire,
            meta: {
                requireAuth: true
            },
        },
        {

            path: "/product/contact",
            name: "客户联系",
            component: Contact,
            meta: {
                requireAuth: true
            },
        },
        {

            path: "/product/leadManagement",
            name: "商机查询",
            component: LeadManagement,
            meta: {
                requireAuth: true
            },
        },
        {
            path: '/product/approvalDetails',
            name: '审批详情',
            component: approvalDetails
        },
        {
            path: "/product/productDetails",
            name: "产品详情",
            component: productDetails,
            meta: {
                requireAuth: true
            }

        },
        {

            path: "/product/salesContract",
            name: "合同查询",
            component: salesContract,
            meta: {
                requireAuth: true
            }

        }, {
            path: "/maheimeicom/Payment",
            name: 'pricetable',
            component: pricetable,
        },
        {
            path: "/caigoushangcheng/caigoushangcheng",
            name: 'cg',
            component: cg,
        },
        {
            path: "/first/first",
            name: 'first',
            component: sy,
        },
        {
            path: "/charts/zxinjia",
            name: "zxinjia",
            component: zxinjia,
        }, {

            path: "/maheimeicom/vchart",
            name: "vchart",
            component: vchart,
            meta: {
                requireAuth: true
            }

        },
        {
            path: "/product/seal",
            name: "用章申请",
            component: Seal,
            meta: {
                requireAuth: true
            },
        },
        {
            path: '/BasicInformation/sanDanPiPei',
            name: '采购订单',
            component: SanDanPiPei,
            meta: {
                requireAuth: true
            }
        },
        {
            path: '/BasicInformation/caigou',
            name: '采购门户跳转01',
            component: caigou,
        },
        {
            path: '/BasicInformation/contract',
            name: '采购门户跳转02',
            component: contract,
        },
        {
            path: '/AddNewCompany/AddNewCompany',
            name: '采购门户跳转02',
            component: Company,
        },
        //任贯逞新加
        //任贯逞薪资管理
        {
            path: '/salary/salarymanagement',
            name: '薪资管理',
            component: salarymanagement,
        },

        //头部审批
        {
            path: '/maheimeinavcon/approve',
            name: '头部审批',
            component: approve,
        },
        //头部客服
        {
            path: '/maheimeinavcon/service',
            name: '头部客服',
            component: service,
        },
        //头部通知
        {
            path: '/maheimeinavcon/notification',
            name: '头部通知',
            component: notification,
        },

        {
            path: '/charts/signin/Signinrecord',
            name: '签到-1',
            component: Sing,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/charts/leave/Leaves.vue',
            name: '请假',
            component: Leave,
            meta: {
                requireAuth: true
            }
        },

        {
            path: '/charts/src.assets/task',
            name: '研发跳转-6',
            component: Task,
            meta: {
                requireAuth: true
            }
        },


        ],

    },
    ]


})



